﻿using System.Web.Mvc;
using System.Web.Routing;

namespace PortalWeb.Flight.Web
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.MapRoute(
                name: "Flight_default",
                url: "Flight/{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", plugin = "Flight",  id = UrlParameter.Optional },
                namespaces: new string[] { "PortalWeb.Flight.Web.Controllers" }
                );


        }

        public static void RemoveRoutes(RouteCollection routes)
        {
            routes.Remove(routes["Flight_default"]);
        }
    }
}
